package com.jianyun.jyzs.model.imdoel;

import com.jianyun.jyzs.bean.User;

import java.util.List;

/**
 * Created by yangshijun on 2018/10/9.
 */

public interface IContactModel {


    /**
     * 获取 通讯录
     *
     * @param enterpriseCode
     * @param id
     * @param pageIndex
     * @param onLoadContactLisener
     */
    void getContact(String enterpriseCode, String userId, String pageIndex, OnLoadContactLisener onLoadContactLisener);

    void onLoadMoreContact(String enterpriseCode, String userId, int pageIndex, int total,OnLoadContactLisener onLoadContactLisener);

    interface OnLoadContactLisener {
        void onSuccess(List<User> list);

        void onFailed(String msg);

        void setToal(int pageToal,int indexPage);

        void onNoLoadMore(boolean isMore);
    }
}
